package Testking14;

import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.PriorityQueue;

class sup {
	void method() throws Exception {
	}
}

class test extends sup /* implements Comparator<test> */
{
	/*
	 * private int x; test(int input) { x = input; } public static void main(
	 * String args[] ) { List list = new ArrayList(); list.add(new test(2));
	 * list.add(new test(2)); Collections.sort(list); } public int compare( test
	 * t1 , test t2 ) { return t1.x - t2.x; }
	 */

	public static void main(String[] args) {
		new test();

		/**
		 * Nao podemos comparar dois tipos diferentes mesmo que seja um primitivo int e um Objeto Integer
		 * System.out.println( Arrays.equals( new int[]{1,2,3,4} , new Integer[]{1,2,3,4} )); FALHA DE COMPILACAO
		 */
		System.out.println( Arrays.equals( new Integer[]{1,2,3,4} , new Integer[]{1,2,3,4} ));

		/*PriorityQueue q = new PriorityQueue();
		q.offer(new String("hello "));
		q.offer(new String("hi ") );
		q.offer(new String("bye "));
		for ( Object o : q ){
		   System.out.println(q.poll() + " " + q.size());
		}*/

	}

	void method() { }

	test() {
		this(2);
	}

	test(int x) {
		System.out.println(x);
	}
}